package main.controller;


import main.dao.entity.User;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("aaa")
public class CheckController {
    private User user;
    @RequestMapping("getId{id}")
    public String getID(@PathVariable Integer id, Model model) {
        user.setUserId(2);
        user.setPassword("123456");
        model.addAttribute("hi","user");

        return "hello";
    }
}